home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
csounds
/
whooper.c
< prev
Wrap
Text File
|
1988-08-17
|
303b
|
23 lines
#define FALSE 0
#define TRUE 1
void whooper()
{
int freq;
int done = FALSE;
do {
for (freq = 900; freq <= 1000; freq++) {
sound(freq);
delay(2);
if (kbhit()) {
done = TRUE;
break;
}
}
} while (!(done));
nosound();
}